package com.woniuxy.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.entity.Perms;
import com.woniuxy.entity.Roles;

public interface RolesPermsService {

	@Transactional
	public Boolean updateUserRoles(int u_id, int[] ro_ids);

	@Transactional
	public Boolean updateRolesPerms(int ro_id, int[] pe_ids);

	public List<Roles> findRolesByUid(int u_id);

	public List<Perms> findPermsByRid(int ro_id);

	public List<Roles> findRolesPerms();

	public List<Perms> allPerms();

	public List<Roles> allRoles();

}
